﻿using Common.NpoiHelper.Attributes;
using SqlSugarAndEntity.Entity;
using System;
using System.Collections.Generic;

namespace SqlSugarAndEntity.DataTransferObject.user
{
    public class UserDTO
    {
        /// <summary>
        /// Desc:主键
        /// Default:
        /// Nullable:False
        /// </summary>           
        [Npoi("用户ID")]
        public decimal ID { get; set; }

        /// <summary>
        /// Desc:用户姓名
        /// Default:
        /// Nullable:True
        /// </summary> 
        [Npoi("用户姓名")]
        public string UserName { get; set; }

        /// <summary>
        /// Desc:登录账号
        /// Default:
        /// Nullable:False
        /// </summary>
        [Npoi("用户账号")]
        public string UserAccount { get; set; }

        /// <summary>
        /// Desc:密码
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string UserPassWord { get; set; }

        /// <summary>
        /// Desc:性别
        /// Default:
        /// Nullable:True
        /// </summary> 
        [Npoi("用户性别")]
        public string UserSex { get; set; }

        /// <summary>
        /// Desc:用户手机
        /// Default:
        /// Nullable:True
        /// </summary>
        [Npoi("用户手机")]
        public string UserPhone { get; set; }

        /// <summary>
        /// Desc:用户权限 0管理员 1普通用户
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string UserRole { get; set; }

        /// <summary>
        /// Desc:身份证号
        /// Default:
        /// Nullable:True
        /// </summary>
        [Npoi("身份证号")]
        public string IdNumber { get; set; }
        /// <summary>
        /// Desc:创建人ID
        /// Default:
        /// Nullable:True
        /// </summary>
        public decimal? CreateBy { get; set; }
        [Npoi("创建日期")]
        public DateTime CreateDate { get; set; }=DateTime.Now;
        public List<decimal> OrgId { get; set; }
        
        public List<sys_orginfo> OrgList { get; set; }

        public string OrgName { get; set; }
    }
}
